<?php


class CategoryController extends CommonController
{
    public function detailAction()
    {
        $id = $this->get('id');
        $data = categoryModel::getCategoryDetail($id);
        json(['code' => 1, 'msg' => '商城分类', 'data' => $data]);
    }

    public function indexAction()
    {
        $id = $this->get('id');
        $data = categoryModel::getCategoryList($id);
        json(['code' => 1, 'msg' => '商城分类', 'data' => $data]);
    }
}
